//
//  C_HeaderSecondCollectionViewCell.m
//  音悦咖
//
//  Created by Best on 15/7/21.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "C_HeaderSecondCollectionViewCell.h"

@implementation C_HeaderSecondCollectionViewCell

- (void)dealloc
{
    [_desuLabel release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self create];
    }
    
    return self;
}


- (void)create
{
    self.desuLabel = [[UILabel alloc] init];
    self.desuLabel.font = [UIFont systemFontOfSize:13];
    self.desuLabel.numberOfLines = 0;
   // self.desuLabel.backgroundColor = [UIColor orangeColor];
    self.desuLabel.textColor = [UIColor whiteColor];
    [self addSubview:self.desuLabel];
    [_desuLabel release];
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    //self.desuLabel.frame = CGRectInset(layoutAttributes.frame, 20, 10);
    self.desuLabel.frame = CGRectMake(20, 10, layoutAttributes.frame.size.width - 40, layoutAttributes.frame.size.height - 20);
}

@end
